<template>
	<j-cell-group>
		<j-cell title="屏幕信息" :tips="fVideoOSDInfo[0].Info[0]"></j-cell>
		<j-cell title="背景颜色" :tips="fVideoOSDInfo[0]['fVideoOSDInfoWidget']['BackColor']"></j-cell>
		<j-cell title="编码混合" :more="false">
			<view slot="tips">
				<switch :checked="fVideoOSDInfo[0]['fVideoOSDInfoWidget']['EncodeBlend']" disabled></switch>
			</view>
		</j-cell>
		<j-cell title="文字颜色" :tips="fVideoOSDInfo[0]['fVideoOSDInfoWidget']['FrontColor']"></j-cell>
		<j-cell title="预览混合" :more="false">
			<view slot="tips">
				<switch :checked="fVideoOSDInfo[0]['fVideoOSDInfoWidget']['PreviewBlend']" disabled></switch>
			</view>
		</j-cell>
		<j-cell-card title="显示位置" :more="false">
			<j-cell title="x1" :tips="fVideoOSDInfo[0]['fVideoOSDInfoWidget']['RelativePos'][0]"></j-cell>
			<j-cell title="y1" :tips="fVideoOSDInfo[0]['fVideoOSDInfoWidget']['RelativePos'][1]"></j-cell>
			<j-cell title="x2" :tips="fVideoOSDInfo[0]['fVideoOSDInfoWidget']['RelativePos'][2]"></j-cell>
			<j-cell title="y2" :tips="fVideoOSDInfo[0]['fVideoOSDInfoWidget']['RelativePos'][3]"></j-cell>
		</j-cell-card>
	</j-cell-group>
</template>

<script>
export default {
    data() {
        return {
            token: '',
            fVideoOSDInfo: {
                Info: ''
            }
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {
		this.token = options.token
		this.getVideoOutPriority();
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {},
    methods: {
        // 获取通道标题
        getVideoOutPriority() {
            uni.showLoading();
            let token = this.token;
            let data = {
                Name: 'fVideo.OSDInfo'
            };
            getApp().globalData.api.getconfig(data, token, (result) => {
                console.log(result);
                uni.hideLoading({
                    success: (res) => {
                        this.fVideoOSDInfo = result['fVideo.OSDInfo'].OSDInfo
                    }
                });
            });
        }
    }
};
</script>
<style></style>
